<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="cache-control" content="no-cache">
<link rel="start" title="Site Top" href="../../">
<link rel="stylesheet" href="css_e.css" type="text/css" media="screen" title="ELM Default">
<title>FatFs - Known Problems</title>
</head>
<body>
<h2>Known Problems</h2>
<p>FatFs R0.11 has been released at February 9, 2015. These are the verified problems about FatFs R0.11 and its workaround or patch.<br></p>
<hr>
<pre>
1. March 9, 2015
-------------------------------------------------------------------------------------------
At the thread-safe configuration (_FS_REENTRANT == 1), an unexpected operation to the volume
can result a wrong volume lock. For example, f_open() ==> media change ==> f_close(),
in this case the volume gets left locked and following function calls to the volume will be
locked out until a forced initialization of the volume by f_mount().
To solve this problem, apply this patch to the ff.c.

--- ff.c	Mon Feb  9 20:32:25 2015
+++ ff11_p1.c	Sat Mar  8 22:16:08 2015
@@ -2330,11 +2330,8 @@
 
 
-	if (!fil || !fil->fs || !fil->fs->fs_type || fil->fs->id != fil->id)
+	if (!fil || !fil->fs || !fil->fs->fs_type || fil->fs->id != fil->id || (disk_status(fil->fs->drv) & STA_NOINIT))
 		return FR_INVALID_OBJECT;
 
 	ENTER_FF(fil->fs);		/* Lock file system */
-
-	if (disk_status(fil->fs->drv) & STA_NOINIT)
-		return FR_NOT_READY;
 
 	return FR_OK;

</pre>
</body>
</html>
